package com.aaa.sbm.util;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component   //不属于三层之内交给spring ioc容器管理
@PropertySource("classpath:config.properties")  //加载自定义文件路径
@ConfigurationProperties(prefix = "ftp")  //属性配置  prefix 前缀，标识本类加载以什么什么开头的配置属性
public class FtpProperties {

    private String host;
    private int port;
    private String username;
    private String password;
    private String encoding;
    //连接超时时间设置 单位毫秒  30秒
    private String connectTimeout;
    //上传文件的根目录
    private String basePath;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEncoding() {
        return encoding;
    }

    public void setEncoding(String encoding) {
        this.encoding = encoding;
    }

    public String getConnectTimeout() {
        return connectTimeout;
    }

    public void setConnectTimeout(String connectTimeout) {
        this.connectTimeout = connectTimeout;
    }

    public String getBasePath() {
        return basePath;
    }

    public void setBasePath(String basePath) {
        this.basePath = basePath;
    }
}
